var app = angular.module("intePlmApp",["ionic","elif"]);
app.config(function($stateProvider,$urlRouterProvider,$ionicConfigProvider,$httpProvider){
	$ionicConfigProvider.platform.android.navBar.alignTitle('center');
	$ionicConfigProvider.platform.android.tabs.style('standard');
	$ionicConfigProvider.platform.android.backButton.icon("ion-ios-arrow-back");
  	$ionicConfigProvider.platform.android.tabs.position('bottom');
  	$ionicConfigProvider.backButton.previousTitleText(false);
	$ionicConfigProvider.backButton.text("");
	
	
	$httpProvider.defaults.withCredentials = false;
	
	if (!isiOS &&!isAndroid) {
		$httpProvider.defaults.headers.common = {'Content-Type': 'application/x-www-form-urlencoded','User-Agent':'iOS'};
	}
	
	$urlRouterProvider.otherwise("/login");
	
	$stateProvider.state("login",{
		url:"/login",
		cache:false,
		templateUrl:"login.html",
		controller:"loginCtrl"
	})
	$stateProvider.state("tab",{
		url:"/tab",
		cache:false,
		templateUrl:"template/tab.html",
		controller:"tabCtrl"
	})

})